<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
<%  
out.println("RequestURI="+request.getRequestURI()+";\n");  
out.println("server name="+request.getServerName()+";\n");
out.println("getServerPort="+request.getServerPort()+";\n");
out.println("ContextPath="+request.getContextPath()+";\n");
out.println("servletpath="+request.getServletPath()+";\n");
%> 
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户列表</title>
<style>
	tr{
		height:25px;
	}
</style>
</head>
<body>
<table border="1" cellspacing="0" bordercolor="008a8a" style="border-collapse:collapse;
text-align:center;margin:100px auto;">
<thead>
	<tr>
			<th style="width:100px;">用户名</th>
			<th style="width:60px;">性别</th>
			<th style="width:100px;">昵称</th>
			<th style="width:120px;">电话</th>
			<th style="width:120px;">邮箱</th>
			<th style="width:80px;">年龄</th>
	</tr>
</thead>
<c:forEach var="user"  items="${users}" >

     <tr><td>${user.username }</td>
   			 <td>${user.sex }</td>
   			 <td>${user.nickname }</td>
   			 <td>${user.phone }</td>
   			 <td>${user.email }</td>
   			 <td>${user.age }</td>
    </tr>

</c:forEach>

</table>
</body>
</html>